﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Simple.Repository.Migrations
{
    public partial class _54 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Type",
                table: "MedicationRegisterImage");

            migrationBuilder.AddColumn<string>(
                name: "AutographImg",
                table: "MedicationRegister",
                type: "longtext",
                nullable: true,
                comment: "签名")
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AutographImg",
                table: "MedicationRegister");

            migrationBuilder.AddColumn<int>(
                name: "Type",
                table: "MedicationRegisterImage",
                type: "int",
                nullable: false,
                defaultValue: 0,
                comment: "图片类型");
        }
    }
}
